<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template derivation_value_traits</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../intrusive/reference.html#doxygen.derivation__value__traits_8hpp" title="Header &lt;boost/intrusive/derivation_value_traits.hpp&gt;">
<link rel="prev" href="classboost_1_1intrusive_1_1circular__slist__algorithms.html" title="Class template circular_slist_algorithms">
<link rel="next" href="structboost_1_1intrusive_1_1bucket__hash__equal__t.html" title="Struct template bucket_hash_equal_t">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1intrusive_1_1circular__slist__algorithms.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../intrusive/reference.html#doxygen.derivation__value__traits_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1intrusive_1_1bucket__hash__equal__t.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template derivation_value_traits</span></h2>
<p>boost::intrusive::derivation_value_traits</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../intrusive/reference.html#doxygen.derivation__value__traits_8hpp" title="Header &lt;boost/intrusive/derivation_value_traits.hpp&gt;">boost/intrusive/derivation_value_traits.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> NodeTraits<span class="special">,</span> <span class="identifier">link_mode_type</span> LinkMode <span class="special">=</span> <span class="identifier">safe_link</span><span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1intrusive_1_1derivation__value__traits.html" title="Struct template derivation_value_traits">derivation_value_traits</a> <span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">NodeTraits</span>                                                                   <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1ab784a1391e032f5df0b9268367511a07"></a><span class="identifier">node_traits</span><span class="special">;</span>    
  <span class="keyword">typedef</span> <span class="identifier">T</span>                                                                            <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1ada1dc6daf9b7271f9bd0a642564c13ae"></a><span class="identifier">value_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="identifier">node_traits</span><span class="special">::</span><span class="identifier">node</span>                                                            <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a2a95996fec824594114c070c72978d3e"></a><span class="identifier">node</span><span class="special">;</span>           
  <span class="keyword">typedef</span> <span class="identifier">node_traits</span><span class="special">::</span><span class="identifier">node_ptr</span>                                                        <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a3c8307256fea020748bdb4e43799f116"></a><span class="identifier">node_ptr</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">node_traits</span><span class="special">::</span><span class="identifier">const_node_ptr</span>                                                  <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a821163cfc9fb0fb6a6f502358b4c1c4f"></a><span class="identifier">const_node_ptr</span><span class="special">;</span> 
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1intrusive_1_1pointer__traits.html" title="Struct template pointer_traits">pointer_traits</a><span class="special">&lt;</span> <span class="identifier">node_ptr</span> <span class="special">&gt;</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">rebind_pointer</span><span class="special">&lt;</span> <span class="identifier">value_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span>      <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1ad80147cef24abed8fe21d90dcfa46add"></a><span class="identifier">pointer</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1intrusive_1_1pointer__traits.html" title="Struct template pointer_traits">pointer_traits</a><span class="special">&lt;</span> <span class="identifier">node_ptr</span> <span class="special">&gt;</span><span class="special">::</span><span class="keyword">template</span> <span class="identifier">rebind_pointer</span><span class="special">&lt;</span> <span class="identifier">constvalue_type</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1ad1a5440cbd317fc00fca3513f237269c"></a><span class="identifier">const_pointer</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1intrusive_1_1pointer__traits.html" title="Struct template pointer_traits">boost::intrusive::pointer_traits</a><span class="special">&lt;</span> <span class="identifier">pointer</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">reference</span>                       <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a08005e9ac0832600d3ded726d61318ee"></a><span class="identifier">reference</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1intrusive_1_1pointer__traits.html" title="Struct template pointer_traits">boost::intrusive::pointer_traits</a><span class="special">&lt;</span> <span class="identifier">const_pointer</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">reference</span>                 <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a362498015050c69e11658c4006f00813"></a><span class="identifier">const_reference</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="boost_interprocess_header_reference/classboost_1_1interprocess_1_1flat__map__index.html#id26-bb">public static functions</a></span>
  <span class="keyword">static</span> <span class="identifier">node_ptr</span> <a class="link" href="structboost_1_1intrusive_1_1derivation__value__traits.html#doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a1c17715e5bc9b55449f13d7c68fd69e4"><span class="identifier">to_node_ptr</span></a><span class="special">(</span><span class="identifier">reference</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">const_node_ptr</span> <a class="link" href="structboost_1_1intrusive_1_1derivation__value__traits.html#doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1aca568aa43b9b8177ba01d8ec9198d245"><span class="identifier">to_node_ptr</span></a><span class="special">(</span><span class="identifier">const_reference</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">pointer</span> <a class="link" href="structboost_1_1intrusive_1_1derivation__value__traits.html#doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a16f375e8a60dc7531baaf8e14f36b30d"><span class="identifier">to_value_ptr</span></a><span class="special">(</span><span class="identifier">node_ptr</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">const_pointer</span> <a class="link" href="structboost_1_1intrusive_1_1derivation__value__traits.html#doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a5d748f8298281b03c8d163d7cc0eb000"><span class="identifier">to_value_ptr</span></a><span class="special">(</span><span class="identifier">const_node_ptr</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">link_mode_type</span> <span class="identifier">link_mode</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.17.42.13.3.4"></a><h2>Description</h2>
<p>This value traits template is used to create value traits from user defined node traits where value_traits::value_type will derive from node_traits::node </p>
<div class="refsect2">
<a name="id-1.3.17.42.13.3.4.3"></a><h3>
<a name="id26-bb"></a><code class="computeroutput">derivation_value_traits</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">node_ptr</span> <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a1c17715e5bc9b55449f13d7c68fd69e4"></a><span class="identifier">to_node_ptr</span><span class="special">(</span><span class="identifier">reference</span> value<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">const_node_ptr</span> <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1aca568aa43b9b8177ba01d8ec9198d245"></a><span class="identifier">to_node_ptr</span><span class="special">(</span><span class="identifier">const_reference</span> value<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">pointer</span> <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a16f375e8a60dc7531baaf8e14f36b30d"></a><span class="identifier">to_value_ptr</span><span class="special">(</span><span class="identifier">node_ptr</span> n<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">const_pointer</span> <a name="doxygen.structboost_1_1intrusive_1_1derivation__value__traits_1a5d748f8298281b03c8d163d7cc0eb000"></a><span class="identifier">to_value_ptr</span><span class="special">(</span><span class="identifier">const_node_ptr</span> n<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2005 Olaf Krzikalla<br>Copyright © 2006-2015 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1intrusive_1_1circular__slist__algorithms.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../intrusive/reference.html#doxygen.derivation__value__traits_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1intrusive_1_1bucket__hash__equal__t.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
